package org.jbit.news.dao;

import java.util.List;
import org.jbit.news.entity.Topic;

public interface TopicDao {
	//获取所有主题 
	public List<Topic> getAllTopics();
	//更新主题 改
	public int updateTopic(Topic topic);
	//根据名字查找主题 查
	public List<Topic> fingTopicByName(String name);
	//添加主题 
	public int addTopic(String name);
	//通过tid删除主题 删
	public int deleteTopic(int tid);
	
	
}
